package com.ruoyi.book.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 阅读记录对象 bhistory
 * 
 * @author ruoyi
 * @date 2023-05-09
 */
public class History extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 阅读记录 */
    private Long id;

    /** 书籍号 */
    @Excel(name = "书籍号")
    private Long bookid;

    /** 章节号 */
    @Excel(name = "章节号")
    private Long secid;

    /** 最后阅读时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后阅读时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lasttime;

    /** 用户号 */
    @Excel(name = "用户号")
    private Long memid;

    /** 上次阅读的位置 */
    @Excel(name = "上次阅读的位置")
    private Integer pos;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setBookid(Long bookid) 
    {
        this.bookid = bookid;
    }

    public Long getBookid() 
    {
        return bookid;
    }
    public void setSecid(Long secid) 
    {
        this.secid = secid;
    }

    public Long getSecid() 
    {
        return secid;
    }
    public void setLasttime(Date lasttime) 
    {
        this.lasttime = lasttime;
    }

    public Date getLasttime() 
    {
        return lasttime;
    }
    public void setMemid(Long memid) 
    {
        this.memid = memid;
    }

    public Long getMemid() 
    {
        return memid;
    }
    public void setPos(Integer pos) 
    {
        this.pos = pos;
    }

    public Integer getPos() 
    {
        return pos;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("bookid", getBookid())
            .append("secid", getSecid())
            .append("lasttime", getLasttime())
            .append("memid", getMemid())
            .append("pos", getPos())
            .toString();
    }
}
